package org.liukai.tutorial.domain;

import java.io.Serializable;

/**
 * 权限
 * 
 * @author liukai
 * 
 */
public class Authority implements Serializable {

	private static final long serialVersionUID = -2713994822593235116L;

	public static final String AUTHORITY_PREFIX = "ROLE_";

	private Integer id;

	private String name;

	private String url;
	
	public String getPrefixedName() {
		return AUTHORITY_PREFIX + name;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

}
